﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NewDDSys.Entity;
using System.Data;

namespace NewDDSys.IBLL
{
    public interface IWorkBLL
    {
        int AddWork(WorkInfo work);
        int UpdateWork(string num, string banbie, string banzu, decimal dun, string neirong, int good, int bad, string pos, int pb, int cc, int qh, int wcs, string yuanyin);
        decimal kxtj(string ku, string pdtime);
        int UpdateWorkYuanyin(string num, string yuanyin);
        int UpdateKX(string num, decimal kx);
        int Del(string num);
        string AUTOID(string ku);
        DataSet Select(string num);
        DataSet SelectByDay(string sday);
        DataSet SelectBySta(string ku, string sta);
        DataSet SelectZW(string ku);
        DataSet SelectKN(string ku);
        DataSet workcd(string ku, string neirong);
        DataSet dbck(string ku, string cday);
        string wfbykpdb(string ku, string cday, string banbie);
        DataSet cdbykpz(string ku, string neirong, string cday);
        int UpdateZcys(string num, decimal ys);
        int UpdateYs(string num, decimal ys);
        DataSet SelectZYQK();
        string csbyzk(string neirong, string ku);
        string csbyzkH(string bt, string et, string neirong, string ku);
        string yshj();
        int UpdateDX(string num, int dx);
        int UpdateGood(string num, int good);
        int UpdateBad(string num, int bad);
        int UpdatePb(string num, int pb);
        int UpdateCc(string num, int cc);
        int UpdateQh(string num, int qh);
        int UpdateWcs(string num, int wcs);
        int UpdateZw(string num, string zw);
        int UpdateFw(string num, string fw);
        int UpdateGc(string num, string gc);
        int UpdateSta(string num, string sta);
        DataSet nld(string neirong, string ku, string cday);
        DataSet timetj(string ku, string cday);
        
        string FristDay();
        string GoodHJ(string cday);
        string BadHJ(string cday);
        string WFHJ(string cday);
        string LTHJ(string cday);
        string RDK(string cday);
        int UpdatePD(string num, string banbie, string banzu, decimal dun, string neirong, int good, int bad, string pos, int pb, int cc, int qh, string pdtime);
        
        int UpdateFW(string num, string fwtime, string yuanyin);
        string YGoodHJ(string bt, string et);
        string YBadHJ(string bt, string et);
        string YWF(string bt, string et);
        string YDK(string bt, string et);
        string YLT(string bt, string et);
        string CKL(string cday, string ku);
        string ltyshj(string cday);
        DataSet JDWF(string cday);
        DataSet JDLT(string cday);
        string JDDK(string cday);
        DataSet DBZY(string ku, string banzu);
        DataSet ZYQTJ(string kday, string eday, string ku, string neirong);
        DataSet BTJ(string kday, string eday, string ku, string banzu, string neirong);
        string JDCS(string bt, string et, string neirong);
        DataSet SelectZYQKH(string bt, string et);
    }
}
